package com.zjw.zy.coreui.fragment.adapter

import android.view.LayoutInflater
import android.view.ViewGroup
import com.zjw.zy.R
import com.zjw.zy.base.BaseRecyclerAdapter
import com.zjw.zy.bean.HourlyWeather
import com.zjw.zy.coreui.fragment.holder.WeatherHourHolder

/**
 * @author     ：zhong.jw
 * @date       ：Created in 2022/10/12 14:32
 * @description：
 */
class WeatherAdapterHolder() :
    BaseRecyclerAdapter<HourlyWeather, WeatherHourHolder>() {


    override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): WeatherHourHolder {
        val itemView = LayoutInflater.from(parent.context)
            .inflate(R.layout.holder_weather_hour_item, parent, false)

        return WeatherHourHolder(itemView)
    }
}